package cn.ktp.auth.api;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.ktp.auth.entity.User;
import cn.ktp.auth.ibiz.IAuthBiz;

@RestController
@RequestMapping(value = "ktp/api/auth")
public class KtpAuthApi {

	@Autowired
	IAuthBiz biz;

	@RequestMapping(value = "hello")
	public String hello() {
		return biz.hello();
	}

	@RequestMapping(value = "testTransaction")
	public String testTransaction() {
		return biz.testTransaction();
	}


	@RequestMapping(value = "addUser")
	public User addUser(User user) {
		return biz.addUser(user);
	}

	@RequestMapping(value = "listUser")
	public List<User> listUser() {
		return biz.listUser();
	}
	
	
	@RequestMapping(value = "testNacosValue")
	public String testNacosValue() {
		return biz.testNacosValue();
	}
}
